package Java.BlackHorse.IO.BufferStream;

import java.io.*;

public class IODemo3 {
    /*
    * 字符缓冲 输入/输出 流 常用的两个方法
    * BufferedReader: readLine()
    * BufferedWrite: newLine()
    * */
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("IO\\BufferStream\\a.txt"));
        BufferedWriter bw = new BufferedWriter(new FileWriter("IO\\BufferStream\\b.txt",true));
        String line;
        while((line = br.readLine()) != null){
            bw.write(line);
            bw.newLine();
        }

        bw.close();
        br.close();

    }
}
